package com.song.winter.boot.controller;

import com.song.winter.annotation.GetMapping;
import com.song.winter.annotation.RequestParam;
import com.song.winter.annotation.RestController;

import java.util.Map;

@RestController
public class HelloController {

    @GetMapping("/api/hello")
    Map<String, Object> greeting(@RequestParam(value = "action", defaultValue = "Hello") String action, @RequestParam("name") String name) {
        return Map.of("action", Map.of("name", name));
    }

}
